package com.myfirstactivity.utils;

import com.myfirstactivity.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;



public class ShowHTMLContent extends Activity {

	private String rawString = "file:///android_asset/";
	private String[] htmNames = new String[] { "dianji.htm","jiareguan.htm",
			 "paishuibeng.htm","jinshuifa.htm" , "liuliangji.htm",
			 "remindianzu.htm","yanlikaiguan.htm","xidibeng.htm",
			 "e1.htm","e3.htm","e4.htm","e67.htm",
			 "clean.htm","dry.htm","noise.htm"};
private Button back_btn;
	private WebView webView;
	private int position;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.fixguideview);
		webView = (WebView) findViewById(R.id.fixguidewebview);
back_btn = (Button) this.findViewById(R.id.html_back);
back_btn.setOnClickListener(new View.OnClickListener() {
	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		finish();
	}
});
		position = getIntent().getExtras().getInt("POS");
		String url = rawString + htmNames[position];
		webView.loadUrl(url);

	}
}
